
/**
  ******************************************************************************
  * Copyright 2021 The Microbee Authors. All Rights Reserved.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  * 
  * http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * 
  * @file       sensor_rf_params.h
  * @author     baiyang
  * @date       2023-2-9
  ******************************************************************************
  */

#pragma once

#ifdef __cplusplus
extern "C"{
#endif

/*----------------------------------include-----------------------------------*/
#include <common/gp_defines.h>
/*-----------------------------------macro------------------------------------*/

/*----------------------------------typedef-----------------------------------*/
typedef struct sensor_rf_params*sensor_rf_params_t;
typedef const struct sensor_rf_params* sensor_rf_params_const_t;

struct sensor_rf_params {
    Param_Vector3f pos_offset; // position offset in body frame
    Param_float scaling;
    Param_float offset;
    Param_int16 powersave_range;
    Param_int16 min_distance_cm;
    Param_int16 max_distance_cm;
    Param_int8  type;
    Param_int8  pin;
    Param_int8  ratiometric;
    Param_int8  stop_pin;
    Param_int8  function;
    Param_int8  ground_clearance_cm;
    Param_int8  address;
    Param_int8  orientation;
};
/*----------------------------------variable----------------------------------*/

/*-------------------------------------os-------------------------------------*/

/*----------------------------------function----------------------------------*/

/*------------------------------------test------------------------------------*/

#ifdef __cplusplus
}
#endif



